package com.example.charge

import com.alibaba.android.arouter.facade.annotation.Route
import com.example.charge.databinding.ActivityChargeQractivityBinding
import com.example.charge.entity.ChargeEntity
import com.example.common.view.view.BaseMvvmActivity

@Route(path = "/charge/ChargeQRActivity")
class ChargeQRActivity : BaseMvvmActivity<ActivityChargeQractivityBinding>() {
    override fun getLayoutId(): Int  = R.layout.activity_charge_qractivity
    var chargeEntity : ChargeEntity? = null
    override fun initView() {
        super.initView()
        chargeEntity = intent.getParcelableExtra("chargeEntity")

        if (chargeEntity != null){
            chargeEntity?.let { item ->
                mDataBinding.user.text = "户主: ${item.payerName}"
                mDataBinding.money.text = "¥ ${item.actualAmount}.00"
            }
        }
    }

}